package day3;

import java.util.Calendar;
import java.util.UUID;

/**
 * @author oldliu
 * @since 1.0
 */
public class RandomStr {
    public static void main(String[] args) {
        Calendar c=Calendar.getInstance();
        System.out.println(c.get(Calendar.DAY_OF_WEEK));
        int actualMaximum = c.getActualMaximum(Calendar.DAY_OF_YEAR);
        System.out.println(actualMaximum);
        int weeks = c.getActualMaximum(Calendar.WEEK_OF_YEAR);
        System.out.println(weeks);
//        int year=c.get(Calendar.YEAR);
//        c.set(year,0,1);
//        //找到本年的第一个周日
//        c.set(Calendar.DAY_OF_WEEK,Calendar.SUNDAY);
//        System.out.println(c.getTime());
        //c.set(Calendar.OCTOBER,1);
//        System.out.println(c.getTime());
//        System.out.println(c.get(Calendar.DAY_OF_WEEK));
//        c.set(2015,4-1,6);
//        System.out.println(c.get(Calendar.WEEK_OF_YEAR));
//        for(int i=1;i<=20;i++){
//            System.out.println(UUID.randomUUID());
//        }
    }
}
